import request from '@/utils/request'

export const listCheckItem = (search) =>
  request({
    url: '/tCheckItem',
    method: 'get',
    params: {
      offset: search.offset,
      limit: search.limit,
      name: search.name
    }
  })
export const saveTCheckItem = (item) =>
  request({
    url: '/tCheckItem/',
    method: 'post',
    data: item
  })

export const getTCheckItemById = (id) =>
  request({
    url: '/tCheckItem/' + id,
    method: 'get'
  })



export const updateTCheckItem = (id, item) =>
  request({
    url: '/tCheckItem/'+id,
    method: 'put',
    data: item
  })

export const listAllTCheckItem = () =>
  request({
    url: '/tCheckItem/all',
    method: 'get'
  })
